library OfficerTacticalManeuvers initializer init requires LegacySystem

	private function OfficerTacticalManeuversC takes nothing returns boolean
		return GetSpellAbilityId()=='A01N'
	endfunction

	private function OfficerTacticalManeuversA takes nothing returns nothing
		if udg_LostCause then
			call CastInvisibleOn.execute(GetTriggerUnit())
		endif
	endfunction

	private function init takes nothing returns nothing
		local trigger t
		set t = CreateTrigger()
		call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_SPELL_CHANNEL  )
		call TriggerAddCondition( t, Condition( function OfficerTacticalManeuversC ) )
		call TriggerAddAction(t,function OfficerTacticalManeuversA)
	endfunction

endlibrary